/**
 * @author guojiteng
 */
import request from '@/utils/request'
/**
 * 查询字典项
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-B-APP/',
    url: '/app/sysDictionary/getDictByCode',
    method: 'get',
    params: {
      dictCode
    }
  })
}

/**
 * 标签列表
 * @param {*} data
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelInfo/queryPage',
    method: 'post',
    data
  })
}
/**
 * 分类列表
 * @param {*} data
 */
export function hylabelType(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/classifyInfo/query',
    method: 'post',
    data
  })
}
/**
 * 标签统计人数
 * @param {*} data
 */
export function labelCount(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelInfo/statisticalLabelNum',
    method: 'post',
    data
  })
}
/**
 * 标签添加分类
 * @param {*} data
 */
export function insertClassify(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelClassify/insertClassify',
    method: 'post',
    data
  })
}
/**
 * 修改状态
 * @param {*} data
 */
export function updateStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelInfo/updateStatus',
    method: 'post',
    data
  })
}
/**
 * 查询标签所属分类
 * @param {*} data
 */
export function querySelectTypes(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelClassify/queryByLabelId',
    method: 'post',
    data
  })
}
/**
 * 标签列表查看详情
 * @param {*} data
 */
export function queryDetail(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/hyLabel/get',
    method: 'post',
    data
  })
}
/**
 * 标签删除
 * @param {*} data
 */
export function deleteLabel(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/labelClassify/deleteLables',
    method: 'post',
    data
  })
}
